package com.yb.xczx.cloud.media.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 姚兵
 * @since 2023-05-09
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("media_process")
@ApiModel(value = "MediaProcess对象", description = "")
public class MediaProcess {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("文件标识")
    @TableField("file_id")
    private String fileId;

    @ApiModelProperty("文件名称")
    @TableField("filename")
    private String filename;

    @ApiModelProperty("存储桶")
    @TableField("bucket")
    private String bucket;

    @ApiModelProperty("存储路径")
    @TableField("file_path")
    private String filePath;

    @ApiModelProperty("状态,1:未处理，2：处理成功  3处理失败")
    @TableField("status")
    private String status;

    @ApiModelProperty("上传时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty("完成时间")
    @TableField("finish_date")
    private LocalDateTime finishDate;

    @ApiModelProperty("媒资文件访问地址")
    @TableField("url")
    private String url;

    @ApiModelProperty("失败原因")
    @TableField("errormsg")
    private String errormsg;


}
